<?php

use yii\db\Migration;
use yii\db\Schema;

/**
 * Class m210110_172929_ADD_FIELD_AGREE
 */
class m210110_172929_ADD_FIELD_AGREE extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{ai_agreement}}', 'con_num', Schema::TYPE_INTEGER. "(10) DEFAULT '0' COMMENT '数量'  AFTER code ");
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        echo "m210110_172929_ADD_FIELD_AGREE cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m210110_172929_ADD_FIELD_AGREE cannot be reverted.\n";

        return false;
    }
    */
}
